// 数据存在state
export const state = () => ({
  flightRecord: []
});

// 通过mutations修改
export const mutations = {
  setFlightRecord(state, data) {
    // data是从搜索按钮点击那里获取的this.form
    state.flightRecord.unshift(data);
  }
};
